package com.hfi.state.demo02;

import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import java.util.stream.IntStream;

/**
 * @author ChangLiang
 * @date 2020/4/14
 */
public class App {
    
    @Test
    @DisplayName("test state design pattern")
    public void testChangeFireClockWise(){
        FireSwitch fireSwitch = new FireSwitch();
        IntStream.rangeClosed(1,4).forEach((i)->fireSwitch.changeFireClockWise());
    }


    @Test
    @DisplayName("test state design pattern")
    public void testChangeFireCounterClockWise(){
        FireSwitch fireSwitch = new FireSwitch();
        IntStream.rangeClosed(1,4).forEach((i)->fireSwitch.changeFireCounterClockWise());
    }


}
